package com.wht.media.config;

import lombok.Data;
import org.noear.solon.annotation.BindProps;
import org.noear.solon.annotation.Configuration;

/**
 * 媒体服务器配置
 *
 * @author lidaofu
 * @since 2023/11/29
 **/
@Data
@Configuration
@BindProps(prefix = "media")
public class MediaServerConfig {

    private String conf;

    private String mediaIp;

    private Integer threadNum;

    private Integer rtmpPort;

    private Integer rtspPort;

    private Integer httpPort;

    private Integer rtcPort;

    private Integer autoClose;

    private Integer streamNoneReaderDelayMs;

    private Integer maxStreamWaitMs;

    private Integer enableTs;

    private Integer enableHls;

    private Integer enableFmp4;

    private Integer enableRtsp;

    private Integer enableRtmp;

    private Integer enableMp4;

    private Integer enableHlsFmp4;

    private Integer enableAudio;

    private Integer mp4AsPlayer;

    private Integer mp4MaxSecond;

    private String mp4SavePath;

    private String hlsSavePath;

    private String rootPath;

    private Integer hlsDemand;

    private Integer rtspDemand;

    private Integer rtmpDemand;

    private Integer tsDemand;

    private Integer fmp4Demand;

    private Integer logLevel;

    private Integer logMask;

    private Integer logFileDays;

    private String logPath;

    private String rtcHost;

    private Integer broadcastRecordTs;

    private Integer segDur;

    private Integer segNum;
}
